<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <h2 id="app"></h2>
    <script src="../node_modules/@vue/reactivity/dist/reactivity-global.js"></script>
    <script>
      const { reactive, computed, effect } = VueReactivity
      const state = reactive({ name: "hello", age: 10 })

      effect(() => {
        app.innerHTML = state.age
      })

      setTimeout(() => {
        state.age = 500
      }, 1000)
    </script>
  </body>
</html>
